home *** CD-ROM | disk | FTP | other *** search
- on beginSprite me
- global foundation
- foundation.addProp(symbol(string(me.spriteNum)), new(script("foundationobj"), []))
- foundation[symbol(string(me.spriteNum))].addcards(new(script("card"), me.spriteNum))
- end
-
- on mouseEnter me
- global equalvalue, hotcard, waste, foundation
- if member("ftext" & string(foundation.findPos(symbol(string(me.spriteNum))))).text <> "Complete" then
- if value(member("ftext" & string(foundation.findPos(symbol(string(me.spriteNum))))).text) <= 13 then
- if (the clickOn <> 0) and (the clickOn <> me.spriteNum) then
- if sprite(the clickOn).visible = 1 then
- if waste.count > 0 then
- if the clickOn = waste[waste.count].spnum then
- if string(waste[waste.count].rankvalue) = member("ftext" & string(foundation.findPos(symbol(string(me.spriteNum))))).text then
- equalvalue = 1
- hotcard = me.spriteNum
- else
- equalvalue = 0
- hotcard = 0
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end
-
- on mouseLeave me
- global equalvalue, hotcard
- equalvalue = 0
- hotcard = 0
- checkwin()
- end
-